package com.project.bean;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 销售商品中间表实体类
 */
@Data
@Api(tags = "销售视图")
@TableName(value = "sys_sellProduct")
public class SellProductBean {
    @ApiModelProperty(value = "编号",hidden = true)
    @TableId(value = "pk_sellProductId")
    private int id;

    @ApiModelProperty(value = "销售数量")
    private int sellNum;

    @ApiModelProperty(value = "商品成交价")
    private int dealPrice;
    private SellBean sell;
    private ProductBean product;

    public SellProductBean() {
    }

    public SellProductBean(int sellNum, int dealPrice, int productId) {
        this.sellNum = sellNum;
        this.dealPrice = dealPrice;
        this.product = new ProductBean();
        this.product.setId(productId);
    }
}
